<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Deals
 *
 * @author ketu
 */
class Zhishidi_Question_Model_Question extends Mage_Core_Model_Abstract {

    protected function _construct() {
        $this->_init('zhishidi_question/question');
    }

    public function loadExtra($id) {
        $collection = $this->getCollection()
                        ->joinProducts()
                        ->joinStore()
                        ->addFieldToFilter('question_id', $id);
                        //->load($id);
        #echo $collection->getSelect()->__toString();
        if ($collection->getSize()) {
            return $collection->getFirstItem();
        }

        return false;
    }

}

?>
